//
//  WOVMovieV2.m
//  WrapperOfVideo
//
//  Created by James Tuley on 4/10/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import "WOVMovieV2.h"
#import "WOVMovie_Creator.h"
#import "WOVMovie_Private.h"


@implementation WOVMovieV2
-(id)initWithDictionary:(id)aDictionary path:(NSString*) aPath{
	if(self = [super init]){
		infoDict =[aDictionary retain];
		wovPath =[aPath retain];
	}return self;
	
}
-(NSArray*)restoreItems{
	NSMutableArray* tMutArray = [NSMutableArray array];
	NSArray* tArray =[infoDict objectForKey:@"Restore"];
	NSEnumerator* tEmumerator =[tArray objectEnumerator];
	NSString* tObj;
	
	while(tObj = [tEmumerator nextObject]){
		[tMutArray addObject:[wovPath stringByAppendingPathComponent: tObj]];
	}
	
	return tMutArray;
}

		 
		 -(NSString*)quicktimeMoviePath{
		 return [wovPath stringByAppendingPathComponent: [infoDict objectForKey:@"Moov"]];
		 }
		 
		 -(NSString*)standardPath{
		 return [wovPath stringByAppendingPathComponent:[infoDict objectForKey:@"Standard"]];
		 }
@end
